
const BASE_URL = "https://www.roseannepark.love/api/"
// const BASE_URL = "https://roseannepark.vercel.app/api/"

export const getMedias = (data={})=>{
	return uni.$u.http.post('/callfn',data=data)
}

export const login = (data)=>{
	return uni.$u.http.post('/login',data=data)
}

export const uploadFile = (data)=>{
	return uni.$u.http.post('/upload',data=data)
}

export const subscrie = (data)=>{
	return uni.$u.http.post('/subs',data=data)
}

export const getSub = (data)=>{
	return uni.$u.http.post('/getsub',data=data)
}

export const getInfo = ()=>{
	return uni.$u.http.get(BASE_URL + "getInfo")
}

export const getConfig = ()=>{
	return uni.$u.http.get(BASE_URL + 'getConfig')
}

export const getEdge = (data)=>{
	return uni.$u.http.post(BASE_URL + "getEdge",data=data)
}

export const getStore = (data)=>{
	return uni.$u.http.post(BASE_URL + "getStore",data=data)
}

export const sendComment = (data)=>{
	return uni.$u.http.post(BASE_URL + "sendComment",data=data)
}

export const wxLogin = (data)=>{
	return uni.$u.http.post(BASE_URL + "getOpenId",data=data)
}

export const getMessage = (data)=>{
	return uni.$u.http.post(BASE_URL + "getMessage",data=data)
}

export const addMessage = (data)=>{
	return uni.$u.http.post(BASE_URL + "addMessage",data=data)
}

export const getUserEdge = (data)=>{
	return uni.$u.http.post(BASE_URL + "getUserEdge",data=data)
}

export const addUserEdge = (data={})=>{
	return uni.$u.http.post(BASE_URL + "addUserEdge",data=data)
}

export const searchFriend = (data)=>{
	return uni.$u.http.post(BASE_URL + "searchFriend",data=data)
}

export const getComment = (data)=>{
	return uni.$u.http.post(BASE_URL + "getComments",data=data)
}

export const updateUserInfo = (data)=>{
	return uni.$u.http.post(BASE_URL + 'updateUserInfo',data=data)
}

export const getEdgeDetail = (data)=>{
	return uni.$u.http.post(BASE_URL + 'getEdgeDetail',data=data)
}

export const getEdgeLike = (data)=>{
	return uni.$u.http.post(BASE_URL + 'getEdgeLike',data=data)
}

export const getUserEdgeDetail = (data)=>{
	return uni.$u.http.post(BASE_URL + 'getUserEdgeDetail',data=data)
}

export const getDetailStore = (data)=>{
	return uni.$u.http.post(BASE_URL + 'getDetailStore',data=data)
}

export const getFollower = (data)=>{
	return uni.$u.http.post(BASE_URL + 'getFollower',data=data)
}

export const addFollower = (data)=>{
	return uni.$u.http.post(BASE_URL + 'addFollower',data=data)
}

export const updateEdgeLike = (data)=>{
	return uni.$u.http.post(BASE_URL + 'updateEdgeLike',data=data)
}

export const wxpay = (data)=>{
	return uni.$u.http.post(BASE_URL + 'payV3', data=data)
}

export const veriyOrder = (data)=>{
	return uni.$u.http.post(BASE_URL + 'veriyOrder', data=data)
}